#ifndef UNDER_CONSTRUCTION_FEATURE_H
#define UNDER_CONSTRUCTION_FEATURE_H

#include "feature.h"
#include "../widgets/label.h"
#include "../widgets/image.h"
#include "../../images_manager.h"

class UnderConstructionFeature: public Feature
{
public:
    UnderConstructionFeature(int _id, Engine* _engine, int _x, int _y, int _w, int _h,
                      ControllerProxy* _cProxy, MainWidget* _mw)
        :Feature(_id, _engine, _mw, _cProxy, _x, _y, _w, _h)
    {
        l = new Label( this, engine,
                       "This feature is under construction..", w/2 - 100, h/2, 250, 20 );

        QImage* img = ImagesManager::GetInstance()->GetImage
                      ( ImagesManager::WORK_IN_PROGRESS );
        i = new Image( this, engine, w/2 - img->width()/2 + 10, h/2 - img->height() - 20,
                       img->width(), img->height(), img );

        AddChild( l );
        AddChild( i );
    }
    virtual ~UnderConstructionFeature(){ }

    virtual void doShow( void )
    {
        visible = true;
        paintEnabled = true;
        Showed();
    }

    virtual void doHide( void )
    {
        visible = false;
        Hidden();
    }

private:
    Label* l;
    Image* i;
};

#endif // UNDER_CONSTRUCTION_FEATURE_H
